import axios from "axios";

export default {
    //获取详情 goodId
    /**
     * 
     * @param {goodId} params 
     * @returns 
     */
    GetDetailId(params) {
        return axios({
            url: "/detail",
            method: "GET",
            params
        })
    },
    /**
     * 
     * @param {goodId token} params 
     * @returns 
     */
    GetAddCart(params) {
        return axios({
            url: "/add",
            method: "GET",
            params
        })
    },
    GetRemoveCart(params) {
        return axios({
            url: "/remove",
            method: "GET",
            params
        })
    },
    //del
    GetDelCart(params) {
        return axios({
            url: "/del",
            method: "GET",
            params
        })
    },

}